import numpy as np
from os import listdir
from sklearn.neural_network import MLPClassifier

def imgvector(fileName):
    retMat = np.zeros([1024],int)
    fr = open(fileName)
    lines = fr.readlines()
    for i in range(64):
        for j in range(64):
            retMat[i*64+j] = lines[i][j]
    return retMat

